package com.googlecode.framework.core.exception.monitor;

import java.sql.Timestamp;

public class ExceptionMonitorEvent {
    
    /**
     * 异常
     */
    private Throwable throwable;
    
    /**
     * 发生时间
     */
    private Timestamp when;
    
    public ExceptionMonitorEvent(Throwable th) {
        this.throwable = th;
        this.when = new Timestamp(System.currentTimeMillis());
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public Timestamp getWhen() {
        return when;
    }
}
